<?php 

   /**
    *
    * FILE:          cieSearch.php
    * LOCATION:      /root/
    * REFERENCES:    admin.php
    * FUNCTION:      allows a user to search for consumer.
    *                when rendered in cieEdit, shows consumer data
    *                in basic table format.
    * DEPENDENCIES:  cieList.php
    *                cieEdit.php
    *
    * --> LAST CODE MERGE FROM HALFSLIDE:  9-26-07 
    * --> tested against local svn 10-2-07
    * ==============================================================================
    * 
    * @version $Id: cieSearch.php,v 0.1 2007/09/3
    * @copyright Copyright (c) none
    * @author Peter Holcomb
    * @license http://opensource.org/licenses/gpl-license.php GNU General 
    * Public License Version 2  (GPL V2)
    * 
    * ==============================================================================
    */
?>


<fieldset>

	<legend>Consumer Information Entry</legend>

  <?php 
  
      $error = $_GET['error'];
		
      if($error) {
       
	echo "<div class='error'>".$error."</div>";
		
      }
	?>
  
  <p>
      Please enter a search string in the field below and choose a 
      consumer field type to search by.
  </p>
  
  
  <!-- CONSUMER SEARCH FORM -->
  <form action="admin.php?action=cielistquery" method="post">
  
    <!-- search box -->
    <div id="formUnit">
  
                   <label>Search String</label>
                   <input type="text" name="searchStr" value="Enter name to find"/>
  
    </div>
    
    <br/>
    
    <!-- search match option -->
    <div id="formUnit">
  
                  <label>Consumer Attribute</label>
  
                     <select name="searchAttr">
                          <option value="false">Choose Option</option>
                          <option value="lName">Last Name</option>
                          <option value="fName">First Name</option>
                          <option value="city">City</option>
                          <option value="phone">Phone</option>
                    </select>
  
    </div>
    
    <br/>
        
    <div id="formUnit">

      <input type="submit" class="btn" name="Search" value="Search" />

    </div> 

    <!-- option to create new record -->
    <p style="text-align:right;">

       <!-- notice that to create new consumer id, id is set to 0 -->
       <a style="border-top:1px #ccc dotted" href="admin.php?action=cieedit&id=0"><strong>Create New Case File</strong></a>

    </p>
    <p style="text-align:right;">

       <!-- notice that to create new consumer id, id is set to 0 -->
       <a style="border-top:1px #ccc dotted" href="admin.php?action=cielistall"><strong>See All Case Files?</strong></a>

    </p>

 </form>
 <!-- END CONSUMER SEARCH FORM -->

</fieldset>